package com.rtf.framework.dao.config;

import com.rtf.framework.dao.rule.levelpath.LevelPathDataHandler;
import com.rtf.framework.dao.rule.levelpath.ParentIdHandler;
import com.rtf.framework.dao.rule.phone.UniquePhoneDataHandler;
import com.rtf.framework.dao.rule.unique.UniqueCodeDataHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

@Slf4j
@Order(Ordered.LOWEST_PRECEDENCE)
@Configuration
public class AppRuleAutoConfiguration {

    @Bean
    public LevelPathDataHandler levelPathDataHandler(){
        return new LevelPathDataHandler() ;
    }

    @Bean
    public ParentIdHandler parentIdHandler(){
        return new ParentIdHandler() ;
    }

    @Bean
    public UniqueCodeDataHandler uniqueCodeDataHandler(){
        return new UniqueCodeDataHandler() ;
    }

    @Bean
    public UniquePhoneDataHandler uniquePhoneDataHandler(){
        return new UniquePhoneDataHandler() ;
    }

}
